<template>
  <div class="app">
    <div class="navBar">
      <i class="el-icon-s-home"><router-link to="/home">home</router-link></i>

      <i class="el-icon-notebook-1">
        <router-link to="/books">books</router-link></i
      >

      <i class="el-icon-phone">
        <router-link to="/about">abouts</router-link></i
      >
    </div>

    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import HomeView from "@/view/HomeView.vue";

export default {
  name: "LayoutView",
  components: { HomeView },
};
</script>

<style scoped>
.app {
  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: center;
}
.navBar {
  width: 100%;
  background-color: aqua;
  height: 50px;

  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
</style>
